<template>
  <div class="view-history">
    <TableTools :tableTools="tableTools" @on-search="handleClickSearch"></TableTools>
    <Table :columns="columns" :data="data"></Table>
  </div>
</template>
<script>
import TableTools from 'components/TableTools'
export default {
  name: 'history',
  data () {
    return {
      columns: [
        {
          title: '名称',
          key: 'name'
        },
        {
          title: 'id',
          key: 'id'
        },
        {
          title: '推送时间',
          key: 'time'
        },
        {
          title: '推送状态',
          key: 'status'
        }
      ],
      data: [],
      tableTools: {
        search: true
      }
    }
  },
  methods: {
    handleClickSearch (keyword) {
      console.log(keyword)
    }
  },
  components: {
    TableTools
  }
}
</script>
